package com.gxa.service.impl;

import com.gxa.common.R;
import com.gxa.mapper.UserMapper;
import com.gxa.pojo.Sys_User;
import com.gxa.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public class UserServiceImpl implements UserService{
    @Autowired(required = false)
    private UserMapper userMapper;
    R r=new R();
    @Override
    public R queryUser() {
      List<Sys_User> result=userMapper.sys_userList();
      if (result!=null){
          r.setCode(200);
          r.setMsg("查询成功");
          r.setData(result);
          return r;
      }
      return null;
    }
}
